﻿/*
 * Copyright © 2020, Wuxi Safover Intelligent Technology Co., Ltd. All rights reserved.
 * 
 * 无锡安永智能科技有限公司版权所有，未经许可，不得用于商业用途
 * 
 * Visit: https://www.safover.com/ 
 */

namespace Ac.Bly
{
    internal class CommandParas
    {
        internal static CommandType GetCommandType(byte head)
        {
            switch (head)
            {
                case 0xAA: return CommandType.UpDataAck;
                case 0x5B: return CommandType.Up0x5B;
                case 0xCF: return CommandType.Up0xCF;
                case 0xA0: return CommandType.Up0xA0;
                case 0xAF: return CommandType.Up0xAF;
                default:
                    return CommandType.UpUnknown;
            }
        }
    }
}